<?php 
if(array_key_exists('message', $_POST)){
	file_put_contents('x.txt', $_POST['message']);
}


?>
<html>
	<head>
	
	
	</head>
	<body>
		<form action='' method="post">
			<input name='message' type='text' /><br/>
			<input type='submit' />
		
		</form>
	
	
	</body>
</html>